#pragma once

#include "NController.h"

namespace Game
{
class NControllerManager
{
public:
	NControllerManager(void);

	~NControllerManager(void);

	void Update(float gameTime);

	virtual void Initialize();

	virtual void Deinitialize();

	void AddController(NController* controller);

	void RemoveController(NController* controller);

	NController* GetController(int index);

	static void CreateInstance();

	static void DestroyInstance();

	static NControllerManager* GetInstance();

private:
	NController** mControllers;

	bool mCheckControllers;

	static NControllerManager* sInstance;

	int mNumberOfControllers;
};
}